package com.kime.shiro.service;

import com.kime.shiro.dao.RoleDAO;
import com.kime.shiro.entity.Perms;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("roleService")
@Transactional
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDAO roleDAO;


    @Override
    public List<Perms> findPermsByRoleId(Integer roleId) {
        return roleDAO.findPermsByRoleId(roleId);
    }
}
